﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace SGT.Model
{
    public class Remito : INotifyPropertyChanged
    {
        private int _RemitoID;
        private DateTime _Fecha;
        private Sector _Sector;
        private string _Referencia;
        private Proveedor _Proveedor;
        private float _Peso;
        private string _Notas;

        public Remito()
        {

        }

        public int RemitoID
        {
            get { return _RemitoID; }
            set
            {
                _RemitoID = value;
                RaisePropertyChanged("RemitoID");
            }
        }

        public DateTime Fecha
        {
            get { return _Fecha; }
            set
            {
                _Fecha = value;
                RaisePropertyChanged("Fecha");
            }
        }

        public Sector SectorUsado
        {
            get { return _Sector; }
            set
            {
                _Sector = value;
                RaisePropertyChanged("SectorUsado");
            }
        }
        public string Referencia
        {
            get { return _Referencia; }
            set
            {
                _Referencia = value;
                RaisePropertyChanged("Referencia");
            }
        }
        public Proveedor ProveedorOrigen
        {
            get { return _Proveedor; }
            set
            {
                _Proveedor = value;
                RaisePropertyChanged("ProveedorOrigen");
            }
        }
        public float Peso
        {
            get { return _Peso; }
            set
            {
                _Peso = value;
                RaisePropertyChanged("Peso");
            }
        }
        public string Notas
        {
            get { return _Notas; }
            set
            {
                _Notas = value;
                RaisePropertyChanged("Notas");
            }
        }


        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        private void RaisePropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(
                    this,
                    new PropertyChangedEventArgs(propertyName)
                    );
            }
        }

        #endregion

    }
}
